package remote.rmicase;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/**
 * description:
 *  rmi测试客户端，接口来自proxy模块
 * @author Yuanml on 2020/10/29 16:12
 */
public class RmiClient {
    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        MyRemote myRemote = (MyRemote) Naming.lookup("rmi://127.0.0.1/MyRemote");
        String hello = myRemote.hello("李冰");
        System.out.println(hello);
    }
}